package dotaframework.utils;

import dota.entity.Horseman;
import dota.entity.InfantryMan;
import dota.entity.Soldier;
import dota.entity.SoldierAbstract;
import dotaframework.weapon.*;

public class MiddleAgeFactory implements AgeFactory {
	public SoldierAbstract getSimpleSoldier(String name) {
		return new InfantryMan(name);
	}
 
	public SoldierAbstract getComplexSoldier(String name) {
		return new Horseman(name);
	}
 
	public Soldier getDefensiveWeapon(Soldier s, String num) {
		return new SoldierWithShield(s, num);
	}
 
	public Soldier getOffensiveWeapon(Soldier s, String num) {
		return new SoldierWithSword(s, num);
	}
}
